package rldungeon.help

import net.cyndeline.scalarlib.rlgraph.util.EdgeCopyFactory
import scalax.collection.GraphPredef._

/**
 * For use when copying edges with room vertices.
 */
class UndirectedEdgeFactory extends EdgeCopyFactory[TestVertex, CorridorEdge] {
  def copyEdge(edge: CorridorEdge[TestVertex], a: TestVertex, b: TestVertex): CorridorEdge[TestVertex] with OuterEdge[TestVertex, CorridorEdge] = {
    CorridorEdge(a, b)
  }
}
